const mutations = {
  /** 国际化设置 */
  setLang(state: any, locale: string): void {
    if (state.locales.includes(locale)) {
      state.locale = locale;
    }
    window.document.title = state.locale === 'en' ? 'Bank-Enterprise Reconciliation Management' : '银企对账管理';
  },

  /** 用户信息设置 */
  setUserInfo(state: any, userInfo: string): void {
    state.userInfo = userInfo;
  },

  /** 明细详情页参数存储 */
  setOverviewDetailParams(state: any, params: any): void {
    state.overviewDetailParams = params;
  },

  /** 专注模式存储 */
  setIsConcentration(state: any): void {
    state.isConcentration = !state.isConcentration;
  },
};

export default mutations;
